package cn.izeno.wx.models

import com.alibaba.fastjson.annotation.JSONField

data class WXUser(
    @field:JSONField(name = "unionid")
    var unionId: String = "",
    @field:JSONField(name = "openid")
    var openId: String = "",
    @field:JSONField(name = "nickname")
    var nickName: String = "",
    @field:JSONField(name = "headimgurl")
    var headImgUrl: String = "",

    var remark: String = "",//公众号对粉丝的备注
    @field:JSONField(name = "groupid")
    private var groupId: Long = -1,//用户所在分组id

    var sex: Int = 0,

    var province: String = "",
    var city: String = "",
    var country: String = "",

    var language: String = "en",  //用户的语言

    var subscribe: Int = 0,       //0:未关注,拉取不到其余信息
    @field:JSONField(name = "subscribe_time")
    var subscribeTime: Long = 0,      //10位时间戳

    @field:JSONField(name = "errcode")
    var errorCode: Int? = null,
    @field:JSONField(name = "errmsg")
    var errorMsg: String? = null
)
